/**
 * user模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '../axios'; // 导入http中创建的axios实例
import qs from 'qs'
const user = {    
    // 发送验证码
    sendmess(params){
        return axios.post('http://139.9.118.119:9999/sendmess/?'+qs.stringify(params));    
    },
    // login    
    login (params) {        
        return axios.post(`${base.admin}/login/?${qs.stringify(params)}`);    
    },
    athleteLogin(params){
        return axios.post(`${base.athlete}/login/?${qs.stringify(params)}`);    
    },
    // register    
    register (params) {        
        return axios.post(`${base.admin}/register/?${qs.stringify(params)}`);    
    }
}

export default user;